package com.wlyuan.open.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 接口信息表
 * </p>
 *
 * @author yuanjie
 * @since 2023-02-28
 */
@Data
@TableName("t_open_api")
@ApiModel(value = "OpenApiDO对象", description = "接口信息表")
public class OpenApiDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("接口名称")
    private String name;

    @ApiModelProperty("接口地址")
    private String url;

    @ApiModelProperty("请求方式")
    private String method;

    @ApiModelProperty("状态 0 禁用 1 启用")
    private Integer status;

    @ApiModelProperty("接口描述")
    private String remark;

    @ApiModelProperty("创建时间")
    private LocalDateTime createAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateAt;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    private Integer sort;


}
